#include <stdio.h>

int fib(int n);
void PrintFN(int m, int n);

int main()
{
    int m, n, t;

    scanf("%d %d %d", &m, &n, &t);
    printf("fib(%d) = %d\n", t, fib(t));
    PrintFN(m, n);

    return 0;
}

/* 你的代码将被嵌在这里 */
int fib(int n)
{
    if (n == 1 || n == 2)
    {
        return 1;
    }
    else
    {
        return fib(n - 1) + fib(n - 2);
    }
}

void PrintFN(int m, int n)
{
    int flag = 0, i = 1;
    while (fib(i) <= n)
    {
        if (fib(i) >= m)
        {
            flag++;
            if (flag == 1)
            {
                printf("%d", fib(i));
            }
            else
            {
                printf(" %d", fib(i));
            }
        }
        i++;
    }
    if (flag == 0)
    {
        printf("No Fibonacci number");
    }
}